package com.ruoyi.tj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;


public class BaseEntity {

    /**
     *  uuid
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    protected String id;


    /**
     * 创建者
     */
    @TableField("creator")
    protected Long creator;

    /**
     * 所属部门ID
     */
    @TableField("dept_id")
    protected Long deptId;

    /**
     * 部门层级关系
     */
    @TableField("dept_path")
    protected String deptPath;

    /**
     * 所属用户ID
     */
    @TableField("user_id")
    protected Long userId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    protected LocalDateTime createTime;

    /**
     * 更新者
     */
    @TableField("updater")
    protected Long updater;

    /**
     * 更新时间
     */
    @TableField("update_time")
    protected LocalDateTime updateTime;

    /**
     * 是否删除 假删除标志
     */
    @TableField("deleted")
    protected Boolean deleted;

    /**
     * 是否审核，0代表暂存 1代表已提交 2代表已审核
     */
    @TableField("reviewed")
    protected Integer reviewed;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getDeptPath() {
        return deptPath;
    }

    public void setDeptPath(String deptPath) {
        this.deptPath = deptPath;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getUpdater() {
        return updater;
    }

    public void setUpdater(Long updater) {
        this.updater = updater;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public Integer getReviewed() {
        return reviewed;
    }

    public void setReviewed(Integer reviewed) {
        this.reviewed = reviewed;
    }
}
